<template>
  <div class="index-container">
    <div class="index-title">
      <img :src="logo" alt="">
      <span>营销数字化运营平台</span>
    </div>
    <div class="index-content" style="transform: translateX(0px) scale(1);">
      <el-row :gutter="80">
        <el-col :span="8">
          <div class="entries-portal-card entry-card-item available" @click="toUrl('/full/')">
            <div class="entry-card-item__background background-color-pmis"></div>
            <div class="entry-card-text">市场罗盘</div>
          </div>
        </el-col>
        <el-col :span="8">
          <div class="entries-portal-card entry-card-item available" @click="toUrl('/full/marketSale/totalPanel')">
            <div class="entry-card-item__background background-color-reporter"></div>
            <div class="entry-card-text">营销透视</div>
          </div>
        </el-col>
        <el-col :span="8">
          <div class="entries-portal-card entry-card-item available" @click="toUrl('/full/menu/DAQOnlinePublicOpinion')">
            <div class="entry-card-item__background background-color-statistics"></div>
            <div class="entry-card-text">数据雷达</div>
          </div>
        </el-col>
        <el-col :span="8">
          <div class="entries-portal-card entry-card-item available" @click="toUrl('/full/organization/list')">
            <div class="entry-card-item__background background-color-finacial"></div>
            <div class="entry-card-text">系统管理</div>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script>
  export default {
    data () {
      return {
        logo: require('../images/login/logo.png')
      }
    },
    methods: {
      toUrl(url){
        this.$router.push({path: url});
      },
    },
    mounted: function () {
    }
  }
</script>
<style>
  .index-container {
    width: 100%;
    height: auto !important;
    min-height: 100% !important;
    background-image: url(../images/index/background.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: 50%;
    background-size: cover;
  }
  .index-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px 0;
    color: #C8EFFC;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .index-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 100px;
    z-index: 2;
  }

  .entry-card-item .entry-card-item__background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0
  }

  .entry-card-item {
    text-align: center;
    height: 245px;
    width: 240px;
    position: relative;
    cursor: not-allowed;
    box-sizing: border-box;
    margin: 20px auto;
    background-image: url("../images/index/circle.png");
  }

  .entry-card-item.available {
    cursor: pointer
  }

  .entry-card-item.available:hover {
    background-image: url("../images/index/circle_s.png");
  }

  .entry-card-item .entry-card-item__background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 50%;
    right: 0;
    z-index: -1;
    opacity: .8;
    transition: opacity .33s;
    transform: translateY(10px);
  }

  .entry-card-item .entry-card-item__background:hover {
    opacity: 1
  }

  .entry-card-item .background-color-pmis {
    background: url(../images/index/market.png) bottom no-repeat;
  }

  .entry-card-item .background-color-reporter {
    background: url(../images/index/sale.png) bottom no-repeat;
  }

  .entry-card-item .background-color-statistics {
    background: url(../images/index/data.png) bottom no-repeat;
  }

  .entry-card-item .background-color-finacial {
    background: url(../images/index/operation.png) bottom no-repeat;
  }

  .entry-card-item:hover .background-color-pmis {
    background: url(../images/index/market_s.png) bottom no-repeat;
  }

  .entry-card-item:hover .background-color-reporter {
    background: url(../images/index/sale_s.png) bottom no-repeat;
  }

  .entry-card-item:hover .background-color-statistics {
    background: url(../images/index/data_s.png) bottom no-repeat;
  }

  .entry-card-item:hover .background-color-finacial {
    background: url(../images/index/operation_s.png) bottom no-repeat;
  }

  .entry-card-text {
    color: #5CE1FE;
    font-size: 20px;
    line-height: 30px;
    padding-top: 140px;
  }
</style>

